package com.zhentao.day04.am.exp1;

import java.util.Date;

/**
 * 创建接口FatherThree,声明方法MethodThree,参数是Sting类型,
 * 返回值为date类型
 */
public class Main {
  public static void main(String[] args) {
    Son son = new Son();

    int[] ints = son.methodOne(10);
    for (int i = 0; i < ints.length; i++) {
      System.out.print(ints[i] + "\t");
    }
    System.out.println("----------------------");

    String s = son.methodTwo("Hello World !!!");
    System.out.println("s = " + s);

    System.out.println("--------------------------");
    String dateStr = "2024-09-05 15:07:18";
    Date date = son.methodThree(dateStr);
    System.out.println("date = " + date);

  }
}
